package collections;

import java.awt.List;
import java.lang.reflect.Array;
import java.util.*;

public class empobj {
	int id;
	String name;
	String addr;

public String toString(){
	return this.name;
	
}

public  empobj(String name){
	this.name=name;
}

public static void main(String[] args){
	empobj[] e=new empobj[10];
	e[0]=new empobj("nandu");
	e[1]=new empobj("nandy");
	e[2]=new empobj("nandini");
	e[3]=new empobj("nandin");
	e[4]=new empobj("nandu");
	java.util.List<empobj> a= Arrays.asList(e);
	for( int i = 0; i < 5; i++){
	System.out.println(e[i]);
		}
	System.out.println(a);
}
}

